﻿<%@page contentType="text/vnd.wap.wml; charset=utf-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="common.*"%>
<%@ page import="wapbean.*"%>

<?xml version="1.0" encoding="utf-8"?> 
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org//DTD//wml_1.1.xml">   
<wml>
<%
     String  ProviderID=request.getParameter("ProviderID");
     String  Name=request.getParameter("Name");
   //String Name=(String)session.getAttribute("Name");
  //   System.out.println("NameName=" + Name);
     session.setAttribute("ProviderID",ProviderID);
     String  Byname=request.getParameter("Byname");
     session.setAttribute("Byname",Byname);
	 ContentFactory Fac = new ContentFactory();
	 ProviderBean prvo=Fac.getProvider(ProviderID);
	 Vector ver = Fac.getMobilemodel(ProviderID);
	 Vector vec = new Vector();
  //   String name = new String(Name.getBytes("iso-8859-1"),"utf-8");
  //   session.setAttribute("name",name);   
%>
<card id="card1" title="乐游-手机游戏下载">   
<p align="left">
 <img src="/game3.0/img/logo.png" alt=""/><br />  
 手机型号:<br />
     <%            
                   int h=Byname.length();
                   int a=2;
				   if(ver!=null&&!ver.isEmpty()){  
                   int m=ver.size();
                   for(int i=0;i<m;i++){
                    Allbean bea=(Allbean)ver.elementAt(i); 
					//String ProviderID=bea.getProviderID();
					  String MobileModelID=bea.getMobileModelID();
					  String Description=bea.getDescription();
					//session.setAttribute("MobileModelID",MobileModelID);  
					 String[] p = Description.split(";");
                     for (int k = 0; k < p.length; k++) {
                 //    System.out.println("kkkkkkkkk=" + p[k]);
                     vec.add(p[k]);
                    
				}}}
			//	System.out.println("eeeeeeeee=" + vec.size());
				if(vec!=null&&!vec.isEmpty()){
                   int n=vec.size();
                   for(int j=0;j<n;j++){
                    String str=(String)vec.elementAt(j);  
                    int stri=str.length();
                     
				%>
				
				★<a href="/game3.0/<%=str%>.html"><%=prvo.getName()%><%=str.substring(h,stri)%></a>  
                <%//if((j+1)%a==0){%> 
				 <br />    
			<%//}
			}}%>       
	<a href="/game3.0/indexmain.jsp">返回</a><br />  
	wap.leyoou.cn
	  
	</p>
</card>
</wml>